package com.yzw.hello.controller.business;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.yzw.hello.service.business.video.VideoService;

@Controller
@RequestMapping("/video")
public class VideoController {

	@Autowired
	private VideoService videoService;
	
		@RequestMapping()
	     public String video(Model model) {
	    	 model.addAttribute("videos", videoService.getList());
	    	 return "business/video/video";
	     }

}
